let token = getToken();
let user = JSON.parse(window.localStorage.getItem("userInfo"));

if (user) {
  var res = playGet(`/v1/api/apply/ls`, "", "", token);
  if (res.code == 200) {
    console.log(res.data);
    if (res.data.length === 0) {
      $("#noData").show();
    }
    res.data.forEach((m) => {
      let li = `<li class="draw"><p class="draw-top"><b class="yellow">提现金额：${m.money}</b> <b class="yellow">申请状态：${m.type.display}</b></p><p><span class="time">提现时间：${m.createTime}</span></p></li>`;
      $("#dataList").append(li);
    });
  } else {
    mui.alert(res.msg);
  }
} else {
  mui.alert("您还未登录，请先登录");
}
